:root {
  --height: calc(100vh - 20px);
  --min-width: 1020px;
  --main-height: calc(100% - 20px);
}
body {
  background-color: #fafafa !important;
}

.formDesign {
  position: relative;
  min-width: var(--min-width);
  height: var(--height);
  background-color: #fafafa;
  &-title {
    position: relative;
    z-index: 99999;
    top: 0px;
    left: 0px;
    width: 100%;
    color: #fff;
    background: #38adff;
    height: 68px;

    .topBox {
      display: flex;
      text-align: center;
      width: 500px;
      margin: 0 auto;
      padding: 25px 0;
    }

    .label {
      flex: 1;
      cursor: pointer;

      span {
        display: inline-block;
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 12px;
        border-radius: 100%;
        border: solid 1px #fff;
        margin-right: 4px;
      }
    }
  }

  &-content {
    *::selection {
      background: none;
    }
    display: flex;
    position: relative;
    width: 100%;
    height: calc(100vh - 92px);
    min-height: 949px;
    overflow: hidden;
    // top: 68px;
    .procedureTemplate {
      position: absolute;
      z-index: 99;
      background: #f6f6f6;
      width: 360px;
      height: calc(100% - 25px);
      border-right: solid 1px #e8e8e8;
      .title {
        margin: 17px 0;
        font-size: 18px;
        color: var(--color-bk1);
        font-weight: 500;
        padding: 0 12px;
        width: 100%;
        cursor: pointer;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
      }

      .items-wrap {
        display: flex;
        flex-wrap: wrap;
        padding-left: 12px;

        .items {
          position: relative;
          font-size: 12px;
          width: 161px;
          line-height: 1.5;
          color: #666;
          background-color: #fff;
          cursor: move;
          margin: 6px 12px 8px 0px;
          padding: 6px 10px;
          border-radius: 2px;
          display: flex;
          justify-content: stretch;
          align-items: center;
          .iconfont {
            margin-right: 4px;
            color: var(--color-bk1);
          }
        }
        .title {
          font-size: 14px;
          border: none;
          width: 324px;
          padding-left: 0px;
          cursor: auto;
          background-color: transparent;
        }
        .drag {
          position: absolute;
          background: #fff;
          font-size: 12px;
          width: 162px;
          line-height: 1.5;
          color: #666;
          cursor: all-scroll;
          margin: 0px 12px 8px 0px;
          padding: 6px 10px;
          border-radius: 2px;
          display: flex;
          justify-content: stretch;
          align-items: center;
          border: solid 1px var(--color-main);
          color: var(--color-main);
          .iconfont {
            margin-right: 4px;
            color: var(--color-main);
          }
        }
      }
    }

    .topShow {
      transition: 200ms;
      left: 0;
    }

    .setParamsBox {
      position: absolute;
      top: 0px;
      background: #fff;
      right: -325px;
      width: 325px;
      height: calc(100% - 25px);
      font-size: 14px;
      border-left: solid 1px #e8e8e8;

      input:focus {
        outline: none;
      }

      .title {
        padding: 5px 15px;
        font-size: 16px;
        line-height: 38px;
        width: 100%;
        background-color: #f6f6f6;
        border-bottom: solid 1px #e8e8e8;
      }

      .list {
        padding: 10px 15px;

        input {
          width: 100%;
          border: solid 1px #ccc;
          border-radius: 3px;
          line-height: 25px;
          padding: 0 10px;
          font-size: 14px;
          color: #666;
        }

        .lab {
          height: 15px;
          line-height: 15px;
          margin: 15px 0;
          font-size: 14px;
          span {
            font-size: 12px;
            color: var(--color-font2);
          }
        }
        .slider {
          width: 170px;
        }
        .labTitBox {
          margin-bottom: 10px;
          .t-input__wrap {
            flex: 1;
          }
          span {
            display: inline-block;
            width: 20px;
            height: 20px;
            margin: 0 5px;
            text-align: center;
            line-height: 16px;
            font-size: 20px;
            border-radius: 20px;
            color: #fff;
            cursor: pointer;
          }
          .sub {
            background: #c8c9d5;
          }
          .add {
            display: none;
            background: #3345ff;
          }
        }
      }
    }

    .setShow {
      transition: 200ms;
      right: 0;
    }
    // 中间控件展示区域
    .showScreen {
      flex: 1;
      position: relative;
      border-left: solid 1px #ccc;
      height: calc(100% - 25px);
      background-color: #fff;
      .actionTab {
        position: relative;
        width: calc(100% - 360px - 324px);
        background-color: #f6f6f6;
        border-bottom: solid 1px #e8e8e8;
        left: 359px;
        display: flex;
        justify-content: space-between;
        line-height: 48px;
        .icon,
        .iconRt {
          display: inline-block;
          width: 24px;
          height: 24px;
          margin: auto 3px;
          background: url(./../../assets/flowImg/btn_chexiao.png) center center
            no-repeat;
          background-size: cover;
        }
        .iconRt {
          background: url(./../../assets/flowImg/btn_huifu.png) center center
            no-repeat;
          background-size: cover;
        }
        .iconfont {
          font-size: 24px;
          color: #999999;
          cursor: pointer;
        }
        .btn_pc_nor2x {
          font-size: 27px;
          margin: 0 10px;
        }
        .active {
          color: #3345ff;
        }
      }
      
      .phoneContent {
        // padding-top: 10px;
        position: absolute;
        margin-top: 40px;
        left: calc(50% - -17px);
        transform: translateX(-50%);
        width: 322px;
        height: 640px;
        border: solid 15px #fff;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        border-radius: 20px;
        background-size: 100% 100%;
        background-color: #fff;
        transition: 500ms;
        z-index: 9;

        .phoneShow {
          display: flex;
          flex-wrap: wrap;
          align-content: flex-start;
          overflow-y: scroll;
          position: absolute;
          transition: 200ms;
          left: 50%;
          transform: translateX(-50%);
          width: calc(100%);
          padding-bottom: 18px;
          height: 610px;
          border: solid 1px #E8E8E8;
          background: #eff1f5;
          border-radius: 18px;
          padding-top: 20px;
          .phItems {
            width: 100%;
            margin: 0 2.5px;
            margin-bottom: 10px;
          }
          .phItem {
            background: #fff;
            position: relative;

            width: 100%;
            padding: 10px;
            font-size: 14px;
            border-radius: 0px;
            border-left: solid 4px #fff;
            cursor: move;
            border: dashed 1px #fff;
            color: #333;

            .actions {
              display: none;
              justify-content: center;
              align-items: center;
              background: #efefef;
              color: #262626;
              text-align: center;
              width: 50px;
              height: 20px;
              font-size: 12px;
              line-height: 20px;
              border-radius: 10px;
              position: absolute;
              right: 10px;
              top: 9px;
              cursor: pointer;
              .line {
                position: relative;
                width: 1px;
                height: 8px;
                background-color: #ababab;
                margin: 0 5px;
              }
              .iconfont {
                font-size: 12px;
              }
            }

            .tit {
              display: block;
              padding-left: 6px;
              width: 100%;
              height: 20px;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            }
            .lab {
              display: block;
              padding-left: 6px;
              height: 20px;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
              width: 100%;
              color: #999999;
            }
            .mast {
              position: absolute;
              left: 8px;
              top: 11px;
            }
            .total {
              position: absolute;
              right: 15px;
              bottom: 4px;
              font-size: 12px;
              color: var(--color-bk2);
            }
          }

          .over {
            border: none;
            &::before {
              content: '';
              position: absolute;
              opacity: 0;
              transition: 300ms;
              width: 4px;
              top: 0;
              left: 0;
              height: 100%;
              background-color: #999999;
            }
            &:hover {
              &::before {
                opacity: 1;
              }
            }
          }

          .act {
            position: relative;
            .actions {
              display: flex;
            }
            &::before {
              content: '';
              position: absolute;
              display: inline;
              opacity: 1;
              width: 4px;
              top: 0;
              left: 0;
              height: 100%;
              background-color: #0061fd;
            }

            // &:hover {
            //   border: solid 1px #fff;
            // }
          }

          .phEmpty {
            background: #0061fd;
            height: 4px;
            position: relative;
            margin: 10px 0;

            &:before,
            &:after {
              position: absolute;
              right: -4px;
              top: -4px;
              content: '';
              width: 0;
              height: 0;
              border-width: 6px;
              border-style: solid;
              border-color: transparent #0061fd transparent transparent;
            }

            &:before {
              left: -4px;
              right: auto;
              border-color: transparent transparent transparent #0061fd;
            }
          }
        }
        .phItemEmpty {
          height: 610px;
          border: solid 1px #E8E8E8;
          background: #eff1f5;
          padding-top: 20px;
          display: flex;
          justify-content: center;
          flex-wrap: wrap;
          flex-direction: column;
          align-content: center;      
          line-height: 30px;
          font-size: 14px;
          color: #999;
          line-height: 60px;
          border-radius: 20px;
          img {
            width: 90%;
            max-width: 217px;
          }
        }
      }
      .PCContent{
        width: calc(100% - 700px);
        min-width: 322px;
        height: calc(100vh - 240px);
        box-shadow:none;
        background:transparent;
        .phoneShow{
          padding: 10px;
          border: none;
          background: #fff;
          .lab{
            border:solid 1px #D9D9D9;
            border-radius: 3px;
            margin-top: 15px;
            padding: 4px;
            font-size: 14px;
            height: 32px !important;
            overflow: hidden;
          }
          .over {
            &:hover {
              box-shadow: 0 1px 5px 0 #26262621;
              &::before {
                opacity: 1;
              }
            }
          }
          .act {
            position: relative;
            box-shadow: 0 1px 5px 0 #26262621;
            .actions {
              display: flex;
            }
          }
        }
        .phItemEmpty {
          height: 100%;
          background: transparent;
          padding-top: 20px;
          display: flex;
          justify-content: center;
          flex-wrap: wrap;
          flex-direction: column;
          align-content: center;      
          line-height: 30px;
          font-size: 14px;
          color: #999;
          line-height: 60px;
          border:none;
          img {
            width: 90%;
            max-width: 217px;
          }
        }
      }
      .subform {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        position: relative;
        width: 100%;
        border: none;
        background: #eff1f5;
        border-radius: 0px;
        padding: 2px;
        .phItems {
          width: 100%;
          margin-bottom: 10px;
          &:last-child{
            margin-bottom: 0;
          }
        }
        .phItem {
          background: #fff;
          position: relative;

          width: 100%;
          padding: 10px;
          font-size: 14px;
          border-radius: 0px;
          border-left: solid 4px #fff;
          cursor: move;
          border: dashed 1px #fff;
          color: #333;
          
          .actions {
            display: none;
            justify-content: center;
            align-items: center;
            background: #efefef;
            color: #262626;
            text-align: center;
            width: 50px;
            height: 20px;
            font-size: 12px;
            line-height: 20px;
            border-radius: 10px;
            position: absolute;
            right: 10px;
            top: 9px;
            cursor: pointer;
            .line {
              position: relative;
              width: 1px;
              height: 8px;
              background-color: #ababab;
              margin: 0 5px;
            }
            .iconfont {
              font-size: 12px;
            }
          }

          .tit {
            display: block;
            padding-left: 6px;
            width: 100%;
          }
          .lab {
            display: block;
            padding-left: 6px;
            height: 20px;
            overflow: hidden;
            width: 100%;
            color: #999999;
          }
          .mast {
            position: absolute;
            left: 8px;
            top: 11px;
          }
          .total {
            position: absolute;
            right: 15px;
            bottom: 4px;
            font-size: 12px;
            color: var(--color-bk2);
          }
        }

        .over {
          border: none;
          &::before {
            content: '';
            position: absolute;
            opacity: 0;
            transition: 300ms;
            width: 4px;
            top: 0;
            left: 0;
            height: 100%;
            background-color: #999999;
          }
          &:hover {
            &::before {
              opacity: 1;
            }
          }
        }

        .act {
          position: relative;
          .actions {
            display: flex;
          }
          &::before {
            content: '';
            position: absolute;
            display: inline;
            opacity: 1;
            width: 4px;
            top: 0;
            left: 0;
            height: 100%;
            background-color: #0061fd;
          }

          // &:hover {
          //   border: solid 1px #fff;
          // }
        }

        .phEmpty {
          background: #0061fd;
          height: 4px;
          position: relative;
          margin: 10px 0;

          &:before,
          &:after {
            position: absolute;
            right: -4px;
            top: -4px;
            content: '';
            width: 0;
            height: 0;
            border-width: 6px;
            border-style: solid;
            border-color: transparent #0061fd transparent transparent;
          }

          &:before {
            left: -4px;
            right: auto;
            border-color: transparent transparent transparent #0061fd;
          }
        }
      }
    }
    // 属性区域
    .ctrlContent {
      .ctrlEmpty {
        display: flex;
        line-height: 200px;
        color: #999;
      }
      .errorPrompt {
        font-size: 12px;
        position: absolute;
        color: #f00;
      }
      .radioOptions {
        .bt {
          width: 80px;
          margin: 0 10px 20px 10px;
        }
      }
      .optionsCont {
        max-height: 135px;
        overflow-y: scroll;
        margin-bottom: 10px;
      }
      .actionRdOpt {
        display: flex;
        justify-content: flex-start;
        font-size: 12px;
        color: var(--color-main);
        span {
          flex: 0.25;
          cursor: pointer;
        }
      }
      .defaultValueCont {
        min-width: 142px;
        max-width: 200px;
        line-height: 20px;
        min-height: 26px;
        max-height: 52px;
        overflow-y: scroll;
        border-radius: 3px;
        border: solid 1px #e8e8e8;
        cursor: pointer;
        span {
          display: inline-block;
          padding: 0 5px;
          background-color: #e8e8e8;
          margin: 3px;
          font-size: 12px;
          border-radius: 3px;
          i {
            font-style: normal;
          }
        }
      }
      // 互斥选项的选择框
      .selectCont {
        min-width: 142px;
        max-width: 200px;
        line-height: 20px;
        min-height: 26px;
        max-height: 52px;
      }
      
    }
  }
  .error {
    font-size: 12px;
    color: var(--color-error);
  }
  :deep(.t-input--suffix) {
    min-width: 142px;
    max-width: 200px;
    line-height: 20px;
    min-height: 26px;
    max-height: 52px;
    overflow-y: scroll;
  }
}
